Other Enumerations

The following enumerations are available globally.

  • Enumeration describing available country codes in the system.

    See more

    Declaration

    Swift

    public enum SystemCountry : String
  • Represents available types of devices.

    Enum value corresponding to device screen size.

    • iPhone35: iPhone 3.5"
    • iPhone40: iPhone 4.0"
    • iPhone47: iPhone 4.7"
    • iPhone55: iPhone 5.5"
    • iPhone58: iPhone 5.8"
    • iPad: iPad
    • iPadPro105: iPad Pro 10.5"
    • iPadPro12: iPad Pro 12"
    See more

    Declaration

    Swift

    public enum DeviceType
  • Each case relates to element of user interface that can overlap scrollable area.

    • navigationBar: equivalent of UINavigationBar.
    • keyboard: equivalent of UIKeyboard.
    • other(XCUIElement, CGRectEdge): equivalent of user defined XCUIElement with CGRectEdge on which it appears. If more than one navigation bar or any other predefined AvoidableElement is expected, use .other case. Predefined cases assume there is only one element of their type.
    See more
  • Swipe direction.

    • up: Swipe up.
    • down: Swipe down.
    • left: Swipe to the left.
    • right: Swipe to the right.
    See more

    Declaration

    Swift

    public enum SwipeDirection
  • Represents available string comparison operations to perform with NSPredicate API.

    Enum value describing NSPredicate string comparison operator.

    • equals: == operator
    • beginsWith: BEGINSWITH operator
    • contains: CONTAINS operator
    • endsWith: ENDSWITH operator
    • like: LIKE operator
    • matches: MATCHES operator
    • other: Custom operator
    See more

    Declaration

    Swift

    public enum StringComparisonOperator : RawRepresentable